.class public Lcom/brixd/niceapp/activity/CategoryAppsActivity;
.super Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;
.source "CategoryAppsActivity.java"

# interfaces
.implements Lcom/handmark/pulltorefresh/library/PullToRefreshBase$OnRefreshListener2;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "InflateParams"
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;",
        "Lcom/handmark/pulltorefresh/library/PullToRefreshBase$OnRefreshListener2",
        "<",
        "Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;",
        ">;"
    }
.end annotation


# instance fields
.field private appJsonObjCallback:Lretrofit/Callback;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lretrofit/Callback",
            "<",
            "Lorg/json/JSONObject;",
            ">;"
        }
    .end annotation
.end field

.field private currentBgColor:I

.field private currentRequestPage:I

.field private mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;

.field private mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

.field private mHasNext:Z

.field private mIsRequesting:Z

.field private mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

.field private mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

.field onBackClick:Landroid/view/View$OnClickListener;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    const/4 v0, 0x0

    .line 39
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;-><init>()V

    .line 46
    iput v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    .line 47
    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mIsRequesting:Z

    .line 48
    iput-boolean v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mHasNext:Z

    .line 118
    new-instance v0, Lcom/brixd/niceapp/activity/CategoryAppsActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity$1;-><init>(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->onBackClick:Landroid/view/View$OnClickListener;

    .line 169
    new-instance v0, Lcom/brixd/niceapp/activity/CategoryAppsActivity$3;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity$3;-><init>(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->appJsonObjCallback:Lretrofit/Callback;

    return-void
.end method

.method static synthetic access$002(Lcom/brixd/niceapp/activity/CategoryAppsActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/CategoryAppsActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 39
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mHasNext:Z

    return p1
.end method

.method static synthetic access$100(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)Lcom/brixd/niceapp/model/CategoryModel;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/CategoryAppsActivity;

    .prologue
    .line 39
    iget-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

    return-object v0
.end method

.method static synthetic access$200(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)I
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/CategoryAppsActivity;

    .prologue
    .line 39
    iget v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    return v0
.end method

.method static synthetic access$210(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)I
    .registers 3
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/CategoryAppsActivity;

    .prologue
    .line 39
    iget v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    add-int/lit8 v1, v0, -0x1

    iput v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    return v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/CategoryAppsActivity;

    .prologue
    .line 39
    iget-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;

    return-object v0
.end method

.method static synthetic access$402(Lcom/brixd/niceapp/activity/CategoryAppsActivity;Z)Z
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/CategoryAppsActivity;
    .param p1, "x1"    # Z

    .prologue
    .line 39
    iput-boolean p1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mIsRequesting:Z

    return p1
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/CategoryAppsActivity;

    .prologue
    .line 39
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->onRefreshComplete()V

    return-void
.end method

.method private fetchData()V
    .registers 7

    .prologue
    .line 164
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mIsRequesting:Z

    .line 165
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getActivity()Landroid/app/Activity;

    move-result-object v1

    invoke-static {v1}, Lcom/brixd/niceapp/service/adapter/ReqRestAdapter;->niceAppAdapter(Landroid/content/Context;)Lretrofit/RestAdapter;

    move-result-object v1

    const-class v2, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    invoke-virtual {v1, v2}, Lretrofit/RestAdapter;->create(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;

    .line 166
    .local v0, "request":Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

    iget v1, v1, Lcom/brixd/niceapp/model/CategoryModel;->cid:I

    const/4 v2, 0x2

    iget v3, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    const/16 v4, 0x14

    iget-object v5, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->appJsonObjCallback:Lretrofit/Callback;

    invoke-interface/range {v0 .. v5}, Lcom/brixd/niceapp/service/restful/NiceAppRestfulRequest;->listAppsInCategory(IIIILretrofit/Callback;)V

    .line 167
    return-void
.end method

.method private initData()V
    .registers 7

    .prologue
    .line 77
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "CategoryModel"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v2

    check-cast v2, Lcom/brixd/niceapp/model/CategoryModel;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

    .line 78
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 79
    .local v1, "models":Ljava/util/List;, "Ljava/util/List<Lcom/brixd/niceapp/model/CategoryAppModel;>;"
    iget-object v2, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

    iget-object v2, v2, Lcom/brixd/niceapp/model/CategoryModel;->categoryAppModels:Ljava/util/List;

    invoke-interface {v1, v2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 80
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v2

    const/4 v3, 0x1

    if-le v2, v3, :cond_2e

    .line 81
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    invoke-interface {v1, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    .line 82
    iget-object v2, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

    iput-object v1, v2, Lcom/brixd/niceapp/model/CategoryModel;->categoryAppModels:Ljava/util/List;

    .line 85
    :cond_2e
    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_32
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_51

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/model/CategoryAppModel;

    .line 86
    .local v0, "categoryAppModel":Lcom/brixd/niceapp/model/CategoryAppModel;
    const/4 v3, 0x0

    invoke-virtual {v0, v3}, Lcom/brixd/niceapp/model/CategoryAppModel;->setExpanded(Z)V

    .line 87
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f09006d

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v3

    invoke-virtual {v0, v3}, Lcom/brixd/niceapp/model/CategoryAppModel;->setCollapsedHeight(I)V

    goto :goto_32

    .line 90
    .end local v0    # "categoryAppModel":Lcom/brixd/niceapp/model/CategoryAppModel;
    :cond_51
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    invoke-static {v2}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getInstance(Landroid/content/Context;)Lcom/zuiapps/suite/utils/db/SharePrefHelper;

    move-result-object v2

    const-string v3, "CurrentBgColor"

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    const v5, 0x7f08002a

    invoke-virtual {v4, v5}, Landroid/content/res/Resources;->getColor(I)I

    move-result v4

    invoke-virtual {v2, v3, v4}, Lcom/zuiapps/suite/utils/db/SharePrefHelper;->getPref(Ljava/lang/String;I)I

    move-result v2

    iput v2, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentBgColor:I

    .line 91
    return-void
.end method

.method private initWidgets()V
    .registers 7

    .prologue
    .line 94
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

    iget-object v1, v1, Lcom/brixd/niceapp/model/CategoryModel;->categoryName:Ljava/lang/String;

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setBackText(Ljava/lang/String;)V

    .line 95
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f08007f

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setBackTextColor(I)V

    .line 96
    const v1, 0x7f0200ae

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setBackArrowBackground(I)V

    .line 97
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->onBackClick:Landroid/view/View$OnClickListener;

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 98
    const/16 v1, 0x8

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setCommitBtnVisibility(I)V

    .line 99
    const v1, 0x7f0c000e

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setRightTitle(I)V

    .line 100
    iget v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentBgColor:I

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setActionBarBgColor(I)V

    .line 102
    const v1, 0x7f0a0040

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    .line 103
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    invoke-virtual {v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;->getRefreshableView()Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    .line 104
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f020088

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 105
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->setDividerHeight(I)V

    .line 106
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->setGroupIndicator(Landroid/graphics/drawable/Drawable;)V

    .line 107
    invoke-static {}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->isMeizu()Z

    move-result v1

    if-nez v1, :cond_6d

    .line 108
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->setOverScrollMode(I)V

    .line 111
    :cond_6d
    new-instance v1, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;

    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    const v3, 0x7f030064

    iget-object v4, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mCategoryModel:Lcom/brixd/niceapp/model/CategoryModel;

    iget-object v5, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    invoke-direct {v1, v2, v3, v4, v5}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;-><init>(Landroid/content/Context;ILcom/brixd/niceapp/model/CategoryModel;Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;)V

    iput-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;

    .line 112
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;

    invoke-virtual {v1, v2}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->setAdapter(Landroid/widget/ExpandableListAdapter;)V

    .line 113
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_87
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/fragment/adapter/CategoryDetailAppListAdapter;->getGroupCount()I

    move-result v1

    if-ge v0, v1, :cond_97

    .line 114
    iget-object v1, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    invoke-virtual {v1, v0}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->expandGroup(I)Z

    .line 113
    add-int/lit8 v0, v0, 0x1

    goto :goto_87

    .line 116
    :cond_97
    return-void
.end method

.method private initWidgetsActions()V
    .registers 3

    .prologue
    .line 127
    iget-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mListView:Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;

    new-instance v1, Lcom/brixd/niceapp/activity/CategoryAppsActivity$2;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity$2;-><init>(Lcom/brixd/niceapp/activity/CategoryAppsActivity;)V

    invoke-virtual {v0, v1}, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;->setOnGroupClickListener(Landroid/widget/ExpandableListView$OnGroupClickListener;)V

    .line 135
    iget-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    invoke-virtual {v0, p0}, Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;->setOnRefreshListener(Lcom/handmark/pulltorefresh/library/PullToRefreshBase$OnRefreshListener2;)V

    .line 136
    return-void
.end method

.method private onRefreshComplete()V
    .registers 2

    .prologue
    .line 203
    iget-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    invoke-virtual {v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;->onRefreshComplete()V

    .line 204
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .registers 4
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 52
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 53
    const v0, 0x7f03000d

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->setContentView(I)V

    .line 55
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->initData()V

    .line 56
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->initWidgets()V

    .line 57
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->initWidgetsActions()V

    .line 59
    iget-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;->setRefreshing(Z)V

    .line 60
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 71
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onPause()V

    .line 72
    const-string v0, "CategoryAppsActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 73
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 74
    return-void
.end method

.method public onPullDownToRefresh(Lcom/handmark/pulltorefresh/library/PullToRefreshBase;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/handmark/pulltorefresh/library/PullToRefreshBase",
            "<",
            "Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 140
    .local p1, "refreshView":Lcom/handmark/pulltorefresh/library/PullToRefreshBase;, "Lcom/handmark/pulltorefresh/library/PullToRefreshBase<Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;>;"
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mIsRequesting:Z

    if-eqz v0, :cond_5

    .line 145
    :goto_4
    return-void

    .line 143
    :cond_5
    const/4 v0, 0x1

    iput v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    .line 144
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->fetchData()V

    goto :goto_4
.end method

.method public onPullUpToRefresh(Lcom/handmark/pulltorefresh/library/PullToRefreshBase;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/handmark/pulltorefresh/library/PullToRefreshBase",
            "<",
            "Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 149
    .local p1, "refreshView":Lcom/handmark/pulltorefresh/library/PullToRefreshBase;, "Lcom/handmark/pulltorefresh/library/PullToRefreshBase<Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellListView;>;"
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mIsRequesting:Z

    if-eqz v0, :cond_5

    .line 161
    :goto_4
    return-void

    .line 153
    :cond_5
    iget-boolean v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mHasNext:Z

    if-nez v0, :cond_15

    .line 154
    iget-object v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->mPullToRefreshExpandableCellListView:Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;

    invoke-virtual {v0}, Lcom/handmark/pulltorefresh/library/PullToRefreshExpandableCellListView;->onRefreshComplete()V

    .line 155
    const v0, 0x7f0c0092

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    goto :goto_4

    .line 158
    :cond_15
    iget v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->currentRequestPage:I

    .line 160
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/CategoryAppsActivity;->fetchData()V

    goto :goto_4
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 64
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onResume()V

    .line 65
    const-string v0, "CategoryAppsActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 66
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 67
    return-void
.end method
